﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ParamerterEdit.aspx.cs"
    Inherits="BySoft.Web.Site.SysManage.ParamerterEdit" MasterPageFile="~/MastePage/SubEmptyMaster.Master" %>

<asp:Content ContentPlaceHolderID="EmptyMasteCPH" runat="server" ID="cphContent">
    <div id="divheadtxt" runat="server">
    </div>
    <br />
    <div class="tableStyle2">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th width="20%">
                    <span class="red">*</span>参数类别：
                </th>
                <td width="30%">
                    <span runat="server" id="spanType">
                        <asp:DropDownList ID="ddlType" runat="server" CssClass="text ui-widget-content ui-corner-all ddlwidth" Height="20px">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="rfvType" runat="server" ErrorMessage="请选择参数类别！" ControlToValidate="ddlType"
                            Display="None">*</asp:RequiredFieldValidator>
                    </span>
                    <asp:Label runat="server" ID="lblType" Visible="false"></asp:Label>
                </td>
                <th width="20%">
                    <span class="red">*</span>参数编号：
                </th>
                <td width="30%">
                    <span runat="server" id="spanCode">
                        <asp:TextBox runat="server" ID="txtCode" MaxLength="10" CssClass="text ui-widget-content ui-corner-all"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvCode" runat="server" ErrorMessage="请输入参数代号！" ControlToValidate="txtCode"
                            Display="None">*</asp:RequiredFieldValidator>
                    </span>
                    <asp:Label runat="server" ID="lblCode" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
                <th width="20%">
                    <span class="red">*</span>参数名称：
                </th>
                <td width="30%">
                    <asp:TextBox runat="server" ID="txtName" MaxLength="20" CssClass="text ui-widget-content ui-corner-all"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="请输入参数名称！" ControlToValidate="txtName"
                        Display="None">*</asp:RequiredFieldValidator>
                </td>
                <th width="20%">
                    参数值：
                </th>
                <td width="30%">
                    <asp:TextBox runat="server" ID="txtValue" MaxLength="10" CssClass="text ui-widget-content ui-corner-all"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th width="20%">
                    排序号：
                </th>
                <td width="30%">
                    <asp:TextBox runat="server" ID="txtIndex" CssClass="text ui-widget-content ui-corner-all"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="revIndex" runat="server" ErrorMessage="排序号必须为小于10000的整数！"
                        ValidationExpression="^[0-9]\d{0,3}$" ControlToValidate="txtIndex">*</asp:RegularExpressionValidator>
                </td>
                <th width="20%">
                    是否有效：
                </th>
                <td width="30%">
                    <asp:CheckBox runat="server" ID="cbValid" Checked="true" />
                </td>
            </tr>
            <tr>
                <th width="20%">
                    参数描述：
                </th>
                <td colspan="3">
                    <asp:TextBox CssClass="text ui-widget-content ui-corner-all" runat="server" ID="txtRemark" TextMode="MultiLine"
                        Rows="4" Width="85%"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="描述不能大于200个字符！"
                        ValidationExpression="^[\w\W]{0,200}$" ControlToValidate="txtRemark" Display="None">*</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr runat="server" id="trCreate" visible="false">
                <th width="20%">
                    创建者：
                </th>
                <td width="30%">
                    <asp:Label runat="server" ID="lblCreator"></asp:Label>
                </td>
                <th width="20%">
                    创建日期：
                </th>
                <td width="30%">
                    <asp:Label runat="server" ID="lblCreateDate"></asp:Label>
                </td>
            </tr>
            <tr runat="server" id="trModify" visible="false">
                <th width="20%">
                    最后修改者：
                </th>
                <td width="30%">
                    <asp:Label runat="server" ID="lblModifyUser"></asp:Label>
                </td>
                <th width="20%">
                    最后修改日期：
                </th>
                <td width="30%">
                    <asp:Label runat="server" ID="lblModifyDate"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div class="controlBar" align="center">
        <table cellpadding="0" cellspacing="0" style="width: 140px; margin: 0 auto;">
            <tr>
                <td>
                    <label class="btnStylec png_bg">
                        <input type="button" id="btnOk" value="确定" onserverclick="btnOK_Click" runat="server"
                            style="width: 60px;" />
                    </label>
                    <label class="btnStyleb png_bg">
                        <input type="button" id="btnCancel" value="返回" onclick="window.location='/SysManage/ParamerterList.aspx?'"
                            style="width: 60px;" />
                    </label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
